.class Lcom/example/m6wmr/SelectAddressActivity$2;
.super Ljava/lang/Object;
.source "SelectAddressActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/SelectAddressActivity;->bingdata()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/SelectAddressActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/SelectAddressActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/SelectAddressActivity$2;->this$0:Lcom/example/m6wmr/SelectAddressActivity;

    .line 309
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v6, 0x0

    .line 311
    invoke-static {}, Lmyapp/Util;->isFastDoubleClick()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 330
    :goto_0
    return-void

    .line 315
    :cond_0
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    .line 316
    .local v0, "kv":Landroid/content/ContentValues;
    const-string v1, "is_default"

    const-string v2, "0"

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 317
    iget-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity$2;->this$0:Lcom/example/m6wmr/SelectAddressActivity;

    # getter for: Lcom/example/m6wmr/SelectAddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v1}, Lcom/example/m6wmr/SelectAddressActivity;->access$5(Lcom/example/m6wmr/SelectAddressActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    const-string v2, "address"

    const-string v3, "id > 0"

    invoke-virtual {v1, v2, v0, v3, v6}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 318
    iget-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity$2;->this$0:Lcom/example/m6wmr/SelectAddressActivity;

    # getter for: Lcom/example/m6wmr/SelectAddressActivity;->cv:Landroid/content/ContentValues;
    invoke-static {v1}, Lcom/example/m6wmr/SelectAddressActivity;->access$7(Lcom/example/m6wmr/SelectAddressActivity;)Landroid/content/ContentValues;

    move-result-object v1

    const-string v2, "is_default"

    const/4 v3, 0x1

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 319
    iget-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity$2;->this$0:Lcom/example/m6wmr/SelectAddressActivity;

    # getter for: Lcom/example/m6wmr/SelectAddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v1}, Lcom/example/m6wmr/SelectAddressActivity;->access$5(Lcom/example/m6wmr/SelectAddressActivity;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    const-string v2, "address"

    iget-object v3, p0, Lcom/example/m6wmr/SelectAddressActivity$2;->this$0:Lcom/example/m6wmr/SelectAddressActivity;

    # getter for: Lcom/example/m6wmr/SelectAddressActivity;->cv:Landroid/content/ContentValues;
    invoke-static {v3}, Lcom/example/m6wmr/SelectAddressActivity;->access$7(Lcom/example/m6wmr/SelectAddressActivity;)Landroid/content/ContentValues;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "id = \'"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\'"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v2, v3, v4, v6}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 320
    iget-object v1, p0, Lcom/example/m6wmr/SelectAddressActivity$2;->this$0:Lcom/example/m6wmr/SelectAddressActivity;

    invoke-virtual {v1}, Lcom/example/m6wmr/SelectAddressActivity;->finish()V

    .line 328
    const-string v1, "AddressActivity"

    const-string v2, "\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u5730\u5740:++++=+="

    invoke-static {v1, v2}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method
